{% block sw_settings_shipping_price_matrices %}
<div class="sw-settings-shipping-price-matrices">
    {% block sw_settings_shipping_price_matrices_price_matrix %}
    <sw-settings-shipping-price-matrix
        v-for="priceGroup in shippingPriceGroups"
        :key="priceGroup.ruleId"
        :price-group="priceGroup"
        :disabled="disabled || undefined"
        @duplicate-price-matrix="onDuplicatePriceMatrix"
        @delete-price-matrix="onDeletePriceMatrix"
    />
    {% endblock %}

    {% block sw_settings_shipping_detail_advanced_prices_actions %}
    <div class="sw-settings-shipping-price-matrices__actions">
        {% block sw_settings_shipping_detail_advanced_prices_actions_add_button %}
        <mt-button
            v-tooltip="{
                showDelay: 300,
                showOnDisabledElements: true,
                message: $tc('sw-settings-shipping.priceMatrix.newMatrixAlreadyExists'),
                disabled: !newPriceMatrixExists
            }"
            :disabled="newPriceMatrixExists || disabled || undefined"
            class="sw-settings-shipping-price-matrices__actions-add-matrix"
            variant="secondary"
            @click="onAddNewPriceGroup"
        >
            {{ $tc('sw-settings-shipping.priceMatrix.buttonAddAdditionalPriceMatrix') }}
        </mt-button>
        {% endblock %}
    </div>
    {% endblock %}
</div>
{% endblock %}
